package com.jhgsys.internal.base.entity;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 商品表 Entity
 *
 * @author admin
 * @date 2024-08-06 09:41:04
 */
@Data
@TableName("base_goods")
public class BaseGoods implements Serializable {

    private static final long serialVersionUID = 7375826793090715811L;
    /**
     * 
     */
    @TableId(value = "goods_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String goodsId;

    /**
     * 租户Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 奖品名称
     */
    @TableField("goods_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String goodsName;

    /**
     * 奖品单价
     */
    @TableField("goods_price")
    @NotNull(message = "{required}")
    private BigDecimal goodsPrice;
    /**
     * 奖品单位
     */
    @TableField("goods_unit")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String goodsUnit;

    /**
     * 兑换积分
     */
    @TableField("exchange_score")
    private Integer exchangeScore;
    /**
     * 库存数量
     */
    @TableField("inventory")
    private Integer inventory;
    /**
     * 锁定库存
     */
    @TableField("lock_number")
    private Integer lockNumber;
//    /**
//     * 已领用数量
//     */
//    @TableField("Issued_number")
//    private Integer issuedNumber;

    /**
     * 文件名称
     */
    @TableField("file_name")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String fileName;

    /**
     * 文件路径
     */
    @TableField("file_path")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String filePath;

    /**
     * 压缩路径
     */
    @TableField("small_path")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String smallPath;

    /**
     * 状态
     */
    @TableField("status")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String status;

    /**
     * 
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 
     */
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 
     */
    @TableField("updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 
     */
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;

}